package com.stars.system.fitness.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * fitness对象 stars_fitness_record
 * 
 * @author shuaibizhe
 * @date 2022-06-21
 */
public class FitnessRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 健身类型 */
    @Excel(name = "健身类型")
    private String type;

    /** 次数 */
    @Excel(name = "次数")
    private Double pieces;

    /** 组数 */
    @Excel(name = "组数")
    private Long groupz;

    /** 日期 */
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String date;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createUser;

    /** 完成状态（1-完成，0-进行中，2-未完成） */
    @Excel(name = "完成状态", readConverterExp = "1=-完成，0-进行中，2-未完成")
    private String status;

    /** 关联基准id */
    @Excel(name = "关联基准id")
    private String basicId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPieces(Double pieces)
    {
        this.pieces = pieces;
    }

    public Double getPieces()
    {
        return pieces;
    }
    public void setGroupz(Long groupz)
    {
        this.groupz = groupz;
    }

    public Long getGroupz()
    {
        return groupz;
    }
    public void setDate(String date)
    {
        this.date = date;
    }

    public String getDate()
    {
        return date;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getBasicId() {
        return basicId;
    }

    public void setBasicId(String basicId) {
        this.basicId = basicId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("pieces", getPieces())
            .append("groupz", getGroupz())
            .append("date", getDate())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("status", getStatus())
            .append("basicId", getBasicId())
            .toString();
    }
}
